#ifndef Tui_TTip_h
#define Tui_TTip_h

#include "TScale9.h"
#include "TMaskPanel.h"
#include "TLabel.h"

class TTip;

class TTipOper:public TPanel{
public:
    
    
};


class TTip:public TPanel
{
public:
    TTip();
    virtual bool init();
    
    virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);
      
    void hide();
    
    virtual void registerWithTouchDispatcher();
    
    virtual void procTuiEvent(const string&,TPanelItem*);
    
    void setOperPanel(TTipOper* panel);
    
    
protected:
    
    TTipOper* m_pOperPanel;
     
    CCPoint m_tStartPos;
    
    void clear();
    
    int curInfoHeight;
    
    TLabel* addText( TPanelItem* container, string &,const TextFormat& format ,bool breakLine=false);
};
#endif
